<!Doctype HTML>
<html>
<head>
	<meta http-equiv="pragma" content="no-cache"> 
    <meta http-equiv="Cache-Control " content="no-cache,must-revalidate"> 
    <meta name="description" content="">
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
	<title>Socket.IO chat</title>
	<link rel="stylesheet" href="./style.css" />
	<script src="/socket.io/socket.io.js"></script>
</head>
<body>
<button id="btn">aaa</button>
<div class="container">
	<div class="content">

		<!-- <div class="list">
			<p class="user-name">匿名用户12138</p>
			<div class="section">123123</div>
		</div>
		<div class="list"><div class="section section-self">123123123</div></div> -->
	</div>
	<div class="control">
		<input id='input' type='text' />
		<div class="send-btn">Send</div>
	</div>

</div>
<script src="./app.js"></script>
<script src="./index.js"></script>
<script src="jquery-2.1.3.js"></script>
<script>
  // $('#btn').click(function (e) {
  //   e.preventDefault();
  //   $.get('http://localhost:1337/users/liao', function (oo) {
  //     console.log(oo)
  //   },'json')
  // })


  $("#btn").click(function () {
    $.ajax({
      url: "http://localhost:1337/users/liao",
      type: "GET",   //post请求方式
      dataType: "json",
      success: function (bb) {
        console.log('ss')
      },
      error: function (bb) {
        alert(bb)
      }
    });
  })




</script>
</body>
</html>
